<!DOCTYPE html>
<html>

<head>
    <meta charset="UTF-8">
    <title>欢迎页面-X-admin2.0</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
    <link rel="stylesheet" href="__PUBLIC__/css/font.css">
    <link rel="stylesheet" href="__PUBLIC__/css/xadmin.css">
    <script type="text/javascript" src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
    <script type="text/javascript" src="__PUBLIC__/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="__PUBLIC__/js/xadmin.js"></script>
    <!-- 让IE8/9支持媒体查询，从而兼容栅格 -->
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>

<body>
<div class="x-body">


        <div class="layui-form-item">
            <button  	class="layui-btn layui-btn-radius  layui-btn-primary">
                全部({$data.总数})
            </button>

            <button  	class="layui-btn layui-btn-radius ">
                非常满意(<if condition="$count[0][数量]">{$count.0.数量}<else/>0</if>)
            </button>

            <button  	class="layui-btn layui-btn-radius layui-btn-normal">
                满意(<if condition="$count[1][数量]">{$count.1.数量}<else/>0</if>)
            </button>

            <button  	class="layui-btn layui-btn-radius layui-btn-warm">
                一般般(<if condition="$count[2][数量]">{$count.2.数量}<else/>0</if>)
            </button>

                <button 	class="layui-btn layui-btn-radius layui-btn-danger">
                    差评(<if condition="$count[3][数量]">{$count.3.数量}<else/>0</if>)
                </button>
            <br><br>
            <hr>

            <foreach name="data" item="v" >
                <blockquote class="layui-elem-quote layui-quote-nm">
                    <if condition="$v['degree'] eq 0">
                        非常满意
                        <elseif condition="$v.degree eq 1"/>
                        满意
                        <elseif condition="$v.degree eq 2"/>
                        一般般
                        <elseif condition="$v.degree eq 3"/>
                        满意
                    </if>

                    —{$v.created_at} <br><br>

                    {$v.content}
                </blockquote>
            </foreach>







        </div>







</div>
<script>
    layui.use(['form','layer'], function(){
        $ = layui.jquery;
        var form = layui.form,
            layer = layui.layer;
    });
    layui.use('element', function(){
        var element = layui.element;
    });
</script>

</body>

</html>